/**
 * 新增所授课程
 * @param userCourseAddMyRequest userCourseAddMyRequest
 * @returns Result OK
 * @returns any Created
 * @throws ApiError
 */
import request from '@/utils/request'

export function saveUsingPost7(
  userCourseAddMyRequest
) {
  return request({
    method: 'POST',
    url: '/userCourse',
    data: userCourseAddMyRequest
  })
}

/**
 * 编辑所授课程信息
 * @param userCourseUpdateMyRequest userCourseUpdateMyRequest
 * @returns Result_string_ OK
 * @returns any Created
 * @throws ApiError
 */
export function updateUsingPut6(
  userCourseUpdateMyRequest
) {
  return request({
    method: 'PUT',
    url: '/userCourse',
    data: userCourseUpdateMyRequest
  })
}
/**
 * 删除所授课程（仅管理员）
 * @param deleteRequest deleteRequest
 * @returns Result_boolean_ OK
 * @returns any Created
 * @throws ApiError
 */
export function deleteUserCourseUsingPost(
  deleteRequest
) {
  return request({
    method: 'POST',
    url: '/userCourse/delete',
    data: deleteRequest
  })
}
/**
 * 所授课程全部查询
 * @returns Result OK
 * @returns any Created
 * @throws ApiError
 */
export function listUsingPost3() {
  return request({
    method: 'POST',
    url: '/userCourse/list'
  })
}
/**
 * 所授课程分页查询
 * @param userCourseQueryRequest userCourseQueryRequest
 * @returns Result_PageResult_ OK
 * @returns any Created
 * @throws ApiError
 */
export function pageUsingPost5(
  userCourseQueryRequest
) {
  return request({
    method: 'POST',
    url: '/userCourse/page',
    data: userCourseQueryRequest
  })
}
/**
 * 根据id查询所授课程
 * @param id id
 * @returns Result_UserCourseUpdateMyRequest_ OK
 * @throws ApiError
 */
export function getByIdUsingGet7(
  id
) {
  return request({
    method: 'GET',
    url: `/userCourse/${id}`
  })
}
